package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品属性值对象 product_attribute_value
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class ProductAttributeValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性值唯一标识 */
    private Long id;

    /** 所属属性ID（关联attribute表） */
    @Excel(name = "所属属性ID", readConverterExp = "关=联attribute表")
    private Long attrId;

    /** 属性值内容（如“红色”“1080P”） */
    @Excel(name = "属性值内容", readConverterExp = "如=“红色”“1080P”")
    private String valueName;

    /** 同一属性内排序序号 */
    @Excel(name = "同一属性内排序序号")
    private Long sort;

    /** 账号状态（0正常 1停用） */
    @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAttrId(Long attrId) 
    {
        this.attrId = attrId;
    }

    public Long getAttrId() 
    {
        return attrId;
    }

    public void setValueName(String valueName) 
    {
        this.valueName = valueName;
    }

    public String getValueName() 
    {
        return valueName;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("attrId", getAttrId())
            .append("valueName", getValueName())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
